package com.hyh.admin.domain.guide;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/*
 * 引导历史记录表
 */
@Data
@ApiModel(value = "IntelligenceHistory对象",description = "智能引导类历史记录表")
public class IntelligenceHistory {
    /*
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long id;

    /*
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long userId;

    /*
     * 引导id
     */
    @ApiModelProperty(value = "引导id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long guideId;

    /*
     * 选项结果
     */
    @ApiModelProperty(value = "选项结果")
    private String optionResult;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
